package de.fhkiel.webstore.data;

import java.io.Serializable;
import java.util.Set;

public class Payment implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long id;
	
	private String name;
	
	private String address;
	
	private String bankInfo;
	
    private Set<PaymentRow> paymentRow;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	public String getBankInfo() {
		return bankInfo;
	}

	public void setBankInfo(String bankInfo) {
		this.bankInfo = bankInfo;
	}
	
	public Set<PaymentRow> getPaymentRow() {
		return paymentRow;
	}

	public void setPaymentRow(Set<PaymentRow> paymentRow) {
		this.paymentRow = paymentRow;
	}
	
	@Override
	public String toString() {
		return " ID ["+id+"]"+
				" name ["+name+"]"+
				" address ["+address+"]"+
				" bankinfo ["+bankInfo+"]";
	}
}
